﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CGSR.Core
{
    public static class ExtentionMethods
    {
        public static float sqrt(this float f)
        {
            return (float) Math.Sqrt(f);
        }

        public static float sqrt(this int f)
        {
            return (float)Math.Sqrt(f);
        }

        public static float sqr(this float f)
        {
            return f*f;
        }

        public static string display(this float f)
        {
            return Math.Round(f, 2).ToString();
        }

        public static int sqr(this int f)
        {
            return f * f;
        }
    }
}
